// pages/user-pay-money/user-pay-money.js
var app = getApp();
var utils = require('../../utils/utils');

Page({

    data: {
        money: ''
    },

    onLoad: function (options) {

    },


    /**
     * 输入金额
     */
    bindMoney: function (e) {
        this.setData({
            money: e.detail.value
        })
    },


    /**
     *确认支付
     */
    startPay: function () {
        var that = this;
        var payObj = {
            money: that.data.money,
            navigateUrl: '../user/index'
        }
        utils.pay(payObj);
    },

    //监听下拉
    onPullDownRefresh:function(){
        console.log("下拉刷新");
        wx.stopPullDownRefresh();
    }
})